package com.thoughtworks.shoutbox.client.services;

import java.util.ArrayList;
import java.util.Map;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.thoughtworks.shoutbox.client.dto.ShoutDTO;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("shout")
public interface ShoutingService extends RemoteService {
	void shout(String message, String roomId);

	ArrayList<ShoutDTO> getAllShouts(String roomId);

	void createRoom(String roomName);

	Map<String, String> getAllRooms();
}
